home *** CD-ROM | disk | FTP | other *** search
- function gotoToplist()
- {
- _root.gotoAndPlay("toplista");
- }
- function onReplyLogin(success)
- {
- switch(replyLoginServer.status)
- {
- case 0:
- msg = "No error; parse was completed successfully.";
- break;
- case -2:
- msg = "A CDATA section was not properly terminated.";
- break;
- case -3:
- msg = "The XML declaration was not properly terminated.";
- break;
- case -4:
- msg = "The DOCTYPE declaration was not properly terminated.";
- break;
- case -5:
- msg = "A comment was not properly terminated.";
- break;
- case -6:
- msg = "An XML element was malformed.";
- break;
- case -7:
- msg = "Out of memory.";
- break;
- case -8:
- msg = "An attribute value was not properly terminated.";
- break;
- case -9:
- msg = "A start-tag was not matched with an end-tag.";
- break;
- case -10:
- msg = "An end-tag was encountered without a matching start-tag";
- }
- replyRoot = replyLoginServer.firstChild;
- if(success)
- {
- _root.sid = replyRoot.lastChild.attributes.xmas2004_sid;
- }
- else
- {
- trace("------hiba az XML betoltesenel!");
- }
- }
- function login(clientid, password)
- {
- loginServer = new XML();
- loginServer.xmlDecl = " <?xml version=\'1.0\' encoding=\'UTF-8\' ?>";
- loginServerElement = loginServer.createElement("ask");
- loginServer.appendChild(loginServerElement);
- loginElement = loginServer.createElement("data");
- loginElement.attributes.action = "get_sid";
- loginServerElement.appendChild(loginElement);
- loginServer.sendAndLoad("processor.php",replyLoginServer);
- }
- _global.style.setStyle("themeColor","haloGreen");
- so = SharedObject.getLocal("myObject");
- quality = SharedObject.getLocal("qualityObject");
- if(quality.data.quality != undefined)
- {
- _root._quality = quality.data.quality;
- }
- else
- {
- _root._quality = "high";
- }
- system.useCodePage = false;
- replyLoginServer = new XML();
- replyLoginServer.ignoreWhite = true;
- replyLoginServer.onLoad = onReplyLogin;
- stopAllSounds();
- login();
- stop();
-